﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kopytko.BoardGame
{
    class Program
    {
        static void Main(string[] args)
        {
            Plansza P = new Plansza();
            //new Print(P);
            P.WykonajRuch(new Ruch(new Pole(5, 0), new Pole(5, 3)));
            P.WykonajRuch(new Ruch(new Pole(6, 0), new Pole(6, 4)));
            P.WykonajRuch(new Ruch(new Pole(3, 0), new Pole(3, 4)));
            P.WykonajRuch(new Ruch(new Pole(2, 0), new Pole(2, 4)));
            P.WykonajRuch(new Ruch(new Pole(1, 0), new Pole(1, 4)));
            P.WykonajRuch(new Ruch(new Pole(3, 7), new Pole(3, 1)));
            P.WykonajRuch(new Ruch(new Pole(3, 1), new Pole(2, 1)));
            P.WykonajRuch(new Ruch(new Pole(2, 1), new Pole(2, 3)));
            //P.WykonajRuch(new Ruch(new Pole(0, 0), new Pole(0, 0)));
            new Print(P);

            foreach (Ruch legalnyruch in P.ListaLegalnychRuchowDanegoKoloru(Color.Black))
            {
                new Print(legalnyruch);
                Console.Out.WriteLine();
            }

            Console.ReadKey();
        }
    } 
}
